﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DbAdapter.sqldbAdapter;

namespace Water.Model
{
    public class TagInitialize
    {
        public string DeviceType { get; set; }
        public string DeviceNo { get; set; }
        public string TagNo { get; set; }

        public int AddTagAndDevice(TagInitialize ti)
        {
            string sql = "Insert Into Tbt_TagInitialize(DeviceType,DeviceNo,TagNo) Values('" + ti.DeviceType + "','"
                + ti.DeviceNo + "','" + ti.TagNo + "')";
            sqldb db = new sqldb();
            return db.ExecuteNonQuery(sqlconn.GetConnStr(), CommandType.Text, sql);
        }
    }
}
